package ma.ac.onousc.gestionfi.EngagementPaiement.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;

/**
 * The persistent class for the fournisseur database table.
 * 
 */
@Entity
@NamedQueries({ @NamedQuery(name = "Beneficiaire.findAll", query = "select o from Beneficiaire o") })
public class Beneficiaire implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int idBeneficiaire;
	private String nomBeneficiaire;
	private String numCompteBeneficiaire;
	
	

	@OneToMany(mappedBy = "beneficiaire")
	private List<Autres> autres;

	
	
	
	public Beneficiaire(String nomBeneficiaire, String numCompteBeneficiaire) {
		super();
		this.nomBeneficiaire = nomBeneficiaire;
		this.numCompteBeneficiaire = numCompteBeneficiaire;
	}

	public Beneficiaire() {
		super();
		// TODO Auto-generated constructor stub
	}

	public int getIdBeneficiaire() {
		return idBeneficiaire;
	}

	public void setIdBeneficiaire(int idBeneficiaire) {
		this.idBeneficiaire = idBeneficiaire;
	}

	public String getNomBeneficiaire() {
		return nomBeneficiaire;
	}

	public void setNomBeneficiaire(String nomBeneficiaire) {
		this.nomBeneficiaire = nomBeneficiaire;
	}

	public String getNumCompteBeneficiaire() {
		return numCompteBeneficiaire;
	}

	public void setNumCompteBeneficiaire(String numCompteBeneficiaire) {
		this.numCompteBeneficiaire = numCompteBeneficiaire;
	}

	public List<Autres> getAutres() {
		return autres;
	}

	public void setAutres(List<Autres> autres) {
		this.autres = autres;
	}

}